<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
  int port=request.getLocalPort();  
%>
<h1> 你好，我是一个Tomcat实例，也可以称为Tomcat服务器，我的端口是 <%=port%>  </h1>
</body>
</html>